import Vue from 'vue'
import VueRouter from 'vue-router'

let routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import(/* webpackChunkName: "login" */ '../views/Goods.vue')
  },
  {
    path: '/goods',
    name: 'Goods',
    component: () => import(/* webpackChunkName: "login" */ '../views/Goods.vue')
  },
  {
    path: '/goodsDetail/:id',
    name: 'GoodsDetail',
    component: () => import(/* webpackChunkName: "login" */ '../views/GoodsDetail.vue')
  },
  {
    path: '/order',
    name: 'Order',
    component: () => import(/* webpackChunkName: "login" */ '../views/Order.vue')
  },
  {
    path: '/address',
    name: 'Address',
    component: () => import(/* webpackChunkName: "login" */ '../views/Address.vue')
  },
  {
    path: '/git',
    name: 'Git',
    component: () => import(/* webpackChunkName: "login" */ '../views/Git.vue')
  },
  {
    path: '/demo',
    name: 'Demo',
    component: () => import(/* webpackChunkName: "login" */ '../views/Demo.vue')
  }
]

Vue.use(VueRouter)

const router = new VueRouter({
  routes
})

export default router;